package com.ctg.payroll2.dao.empadmin;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.ctg.payroll2.bean.filter.empadmin.CsEmpDimissionFilter;
import com.ctg.payroll2.bean.po.CsEmpDimission;
import com.ctg.platform.util.Page;

public interface CsEmpDimissionDao {
	/**
	 * 翻页查询
	 * @param filter 查询过滤器
	 * @return 翻页结果
	 */
	Page queryEmpDimissionPageByFilter(CsEmpDimissionFilter filter);
	/**
	 * 新增一条离退人员
	 * @param csEmpDimission 离退人员
	 * @throws SQLException sql异常
	 */
	void insertEmpDimission(CsEmpDimission csEmpDimission) throws SQLException;
	/**
	 * 更新人员表的离职日期
	 * @param csEmpDimission 离退人员
	 * @throws SQLException sql异常
	 */
	
	void updateEmpDimission(CsEmpDimission csEmpDimission) throws SQLException;
	
	void updateEmployee(CsEmpDimission csEmpDimission) throws SQLException;
	
	int deleteEmpDimission(String ids) throws SQLException;
	
	List queryById(Long id) throws SQLException;
	
	void updateStatusById(CsEmpDimission csEmpDimission,Map<String, Object> map) throws SQLException;
}
